﻿using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration.Configuration;

namespace Equation.Enterprise.Framework.Domain.Model
{
    public static class EntityMappingExtensions
    {
        public static PrimitivePropertyConfiguration IsIdentity(this PrimitivePropertyConfiguration configuration)
        {
            return configuration.HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
        }
    }
}
